public class Pos {
    public int x;
    public int y;

    public Pos() {
        set(0, 0);
    }

    public Pos(int x, int y) {
        set(x, y);
    }

    public Pos set(int x, int y) {
        this.x = x;
        this.y = y;

        return this;
    }

    public boolean eq(Pos obj) {
        return (obj.x == x && obj.y == y) ?  true : false;
    }
}
